<?php
namespace App\Auth;

class Auth
{
    protected $auth;
    public function __construct($class)
    {
        $class = '\\App\\Auth\\' . $class . 'Auth';
        $this->auth = new $class;
    }

    public function auth($account, $passwd)
    {
        return $this->auth->auth($account, $passwd);
    }
}
